import React, {
  Component,
} from 'react';

import {
  AppRegistry,
  Image,
  StyleSheet,
  Text,
  View,
} from 'react-native';

class FirstScreen extends React.Component {
    constructor(props) {
        super(props);
        this.state = {
            text: "Helo input",
            movies: null,
            p: props
        }; // this.state
        this.user_profile = {
            first_name: "",
            last_name: ""
        };
        this.user_credentials = {
            user_id: "",
            user_password: ""
        };
        this.props.title = "First screen";
        
        // Bind local functions
        //this.onPressButton = this.onPressButton.bind(this);
        //this._setState = this._setState.bind(this);
    }
    
    navSecond(){
        this.props.navigator.push({
            id: 'second'
        })
    }
    
    render() {
        return (
            <View>
                <Text>Hello world</Text>
            </View>
        );
    }
}

var styles = StyleSheet.create({
    container: {
        flex: 1,
        justifyContent: 'center',
        alignItems: 'center',
        backgroundColor: '#F5FCFF',
    },
    thumbnail: {
        width: 53,
        height: 81,
    }
});